<?php
namespace app\service;

use app\model\Category;
use app\model\Role;


class RoleService extends BaseService
{



    public function remove($id)
    {
        $model = $this->model;
        $res = $model->where("id",$id)->find();
        if ($res->id>0) {
            return $res->delete();
        }
        return false;
    }

    protected function setModel(): string
    {
        return  Role::class;
    }
}